<?php

header("Content-Type:text/html; charset=gb2312");

require "./include/common.inc.php";

if (submitcheck('courseid'))
{
	$courseid = iconv("UTF-8", "gb2312", $courseid);
	$searchmethod = iconv("UTF-8", "gb2312", $searchmethod);
	$coursename = iconv("UTF-8", "gb2312", $coursename);
	$timeMode = iconv("UTF-8", "gb2312", $timeMode);
	$timeInput = iconv("UTF-8", "gb2312", $timeInput);
	$classSet = SearchTeacher($courseid, $searchmethod, $coursename, $timeMode, ParseTimeString($timeInput));
	$recordNum = count($classSet);
	
	include template("searchclass");

}

?>